$f: 19.2;

.home {
  position: relative;

  .main {
    margin: 132/$f+vw 373/$f+vw 160/$f+vw 260/$f+vw;

    .sec1 {
      width: 100%;
      display: flex;
      justify-content: space-between;

      .l {
        width: 608/$f+vw;

        .swiper1 {
          width: 100%;

          .pic {
            img {
              width: 100%;
              display: block;
              object-fit: cover;
            }
          }
        }

        .swiper2 {
          width: 100%;
          margin-top: 20/$f+vw;

          .pic {
            border: 2px solid transparent;
            transition: all 600ms;
            cursor: pointer;

            img {
              width: 100%;
              display: block;
              object-fit: cover;
            }
          }

          .swiper-slide-thumb-active {
            .pic {
              border-color: #1A53F0;
              ;
            }
          }
        }
      }

      .r {
        width: 630/$f+vw;

        .t {
          color: #333;
          font-size: 24/$f+vw;
        }

        .tags {
          display: flex;

          .tag {
            color: #999;
            font-size: 16/$f+vw;

            &:not(:last-child) {
              margin-right: 80/$f+vw;
            }

            span:nth-child(2) {
              color: #000;
            }
          }

          margin: 12/$f+vw 0;
        }

        .des {
          color: #333;
          font-size: 16/$f+vw;
          padding-bottom: 20/$f+vw;
          border-bottom: 1px solid rgba(0, 0, 0, 0.10);
        }

        .price {
          display: flex;
          align-items: flex-end;

          .p1 {
            color: #333;
            font-size: 20/$f+vw;
          }

          .num {
            color: #1A53F0;
            font-size: 36/$f+vw;
            transform: translateY(6/$f+vw);

            span {
              font-size: 20/$f+vw;
            }
          }

          .number {
            color: #999;
            font-size: 14/$f+vw;
            margin-left: 18/$f+vw;
          }
        }

        .size {
          margin-top: 20/$f+vw;

          .p1 {
            color: #999;
            font-size: 16/$f+vw;
            margin-bottom: 10/$f+vw;
          }

          .btns {
            display: flex;

            div {
              padding: 8/$f+vw 22/$f+vw;
              border-radius: 4px;
              background: rgba(51, 51, 51, 0.06);
              cursor: pointer;
              font-size: 16/$f+vw;
              transition: all 600ms;

              &:first-child {
                margin-right: 10/$f+vw;
              }
            }

            .on {
              background: rgba(26, 83, 240, 0.10);
              color: #1A53F0;
            }
          }

          .nums {
            margin-top: 16/$f+vw;
          }
        }

        .want {
          border-radius: 4px;
          background: #1A53F0;
          width: fit-content;
          height: 40/$f+vw;
          width: 132/$f+vw;
          display: flex;
          justify-content: center;
          align-items: center;
          color: white;
          font-size: 16/$f+vw;
          margin-top: 30/$f+vw;
          cursor: pointer;
        }
      }
    }

    .sec2 {
      margin: 60/$f+vw 0;
      border-top: 1px solid rgba(0, 0, 0, 0.10);
      padding-top: 40/$f+vw;

      .four {
        display: flex;
        justify-content: center;
        margin-bottom: 56/$f+vw;

        .item {
          display: flex;
          align-items: center;
          margin: 0 59/$f+vw;

          .icon {
            img {
              width: 40/$f+vw;
              display: block;
            }
          }

          p {
            margin-left: 25/$f+vw;
            color: #333;
            font-size: 20/$f+vw;
          }
        }
      }

      .intro {
        background: #F6F9FF;
        border-radius: 12px;
        padding: 40/$f+vw 20/$f+vw 10/$f+vw 20/$f+vw;

        .t {
          color: #1A53F0;
          font-size: 20/$f+vw;
          border-bottom: 1px solid rgba(0, 0, 0, 0.10);
          padding-bottom: 12/$f+vw;
          position: relative;
          margin-bottom: 40/$f+vw;
          font-weight: 500;

          &::after {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            bottom: 0;
            width: 80/$f+vw;
            height: 3/$f+vw;
            background: #1A53F0;
          }
        }

        .t1 {
          display: flex;
          align-items: center;

          .line {
            width: 6/$f+vw;
            height: 27/$f+vw;
            background: #6CA5FF;
          }

          p {
            margin-left: 8/$f+vw;
            color: #000;
            font-size: 24/$f+vw;
            font-weight: 600;
          }
        }

        .t2 {
          margin: 20/$f+vw 0;
          width: 244/$f+vw;
          height: 38/$f+vw;
          background: linear-gradient(90deg, #D2EAFF 0%, #FFF 100%);
          padding: 6/$f+vw 10/$f+vw;
          color: #000;
          font-size: 16/$f+vw;
          font-weight: 600;
        }

        .html,
        .des {
          color: #333;
          font-size: 16/$f+vw;
          line-height: 1.625;
          margin-bottom: 26/$f+vw;

          ul {
            margin-left: 20/$f+vw;

            li {
              list-style: disc;
            }
          }
        }
      }
    }
  }

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background: rgba(0, 0, 0, 0.30);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;

    .content {
      width: 706/$f+vw;
      border-radius: 12/$f+vw;
      background: white;
      padding: 60/$f+vw;
      position: relative;
      .close{
        position: absolute;
        right:40/$f+vw;
        top:40/$f+vw;
        z-index: 10;
        cursor: pointer;
        svg{
          width: 20/$f+vw;
          display: block;
        }
      }
      .form {
        .item {
          margin-bottom: 40/$f+vw;

          p {
            color: #000;
            font-size: 18/$f+vw;
            margin-bottom: 16/$f+vw;
          }

          input {
            height: 52/$f+vw;
            border-radius: 4px;
            border: 1px solid rgba(0, 0, 0, 0.20);
            background: #FFF;
            width: 100%;
            padding: 18/$f+vw 26/$f+vw;
            color: #000;
            font-size: 16/$f+vw;

            &::placeholder {
              color: #999;
            }
          }
        }

        .gz {
          margin-bottom: 40/$f+vw;
          p {
            color: #000;
            font-size: 18/$f+vw;
            margin-bottom: 16/$f+vw;
          }

          .tag {
            width: 114/$f+vw;
            height: 32/$f+vw;
            background: rgba(26, 83, 240, 0.10);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1A53F0;
            font-size: 16/$f+vw;
            border-radius: 6/$f+vw;
          }
        }
        .area{
          p {
            color: #000;
            font-size: 18/$f+vw;
            margin-bottom: 16/$f+vw;
          }
          select {
            height: 52/$f+vw;
            border-radius: 4px;
            border: 1px solid rgba(0, 0, 0, 0.20);
            background: #FFF;
            width: 100%;
            padding: 0 26/$f+vw;
            color: #000;
            font-size: 16/$f+vw;

            &::placeholder {
              color: #999;
            }
          }
        }
        button{
          display: flex;
width: 168/$f+vw;
height: 52/$f+vw;
padding: 15/$f+vw 43.8/$f+vw 15/$f+vw 44/$f+vw;
justify-content: center;
align-items: center;
font-size: 20/$f+vw;
color:white;
outline: none;
border: none;
background: #1A53F0;
border-radius: 6/$f+vw;
margin-top: 60/$f+vw;
cursor: pointer;
        }
      }
    }
  }
  @media screen and (max-width: 1024px){
    .main{
      margin: 80px 5%;
      .sec1{
        flex-direction: column;
        .l{
          width: 100%;
          .swiper2{
            margin-top: 10px;
          }
        }
        .r{
          width: 100%;
          margin-top: 20px;
          .t{
            font-size: 20px;
          }
          .tags{
            flex-direction: column;
            margin-bottom: 15px;
            .tag{
              margin-top: 8px;
              font-size: 16px;
              &:not(:last-child){
                margin-right: 0;
              }
            }
          }
          .des{
            font-size: 16px;
            padding-bottom: 10px;
            line-height: 1.6;
          }
          .price{
            .p1{
              font-size: 20px;
            }
            .num{
              font-size: 36px;
              transform: translateY(6px);
              span{
                font-size: 20px;
              }
            }
            .number{
              font-size: 14px;
              margin-left: 15px;
            }
          }
          .size{
            margin-top: 20px;
            .p1{
              font-size: 16px;
              margin-bottom: 10px;
            }
            .btns{
              div{
                padding: 8px  22px;
                font-size: 16px;
                &:first-child{
                  margin-right: 10px;
                }
              }
            }
          }
          .want{
            height: 40px;
            width: 132px;
            font-size: 16px;
            margin-top: 20px;
          }
        }
      }
      .sec2{
        margin: 30px 0;
        padding-top: 20px;
        .four{
          margin-bottom: 28px;
          flex-direction: column;
          .item{
            margin: 0 ;
            // justify-content: center;
            padding-left: 70px;
            margin-bottom: 15px;
            .icon{
              img{
                width: 30px;
              }
            }
            p{
              font-size: 20px;
              margin-left: 15px;
            }
          }
        }
        .intro{
          padding: 20px;
          .t{
            font-size: 20px;
            padding-bottom: 10px;
            margin-bottom: 20px;
            &::after{
              width: 80px;
              height: 3px;
            }
          }
          .t1{
            margin-bottom: 15px;
            .line{
              width:5px;
              height: 20px;
            }
            p{
              margin-left: 6px;
              font-size: 18px;
            }
          }
          .t2{
            width:100%;
            height: 38px;
            font-size: 16px;
            padding: 6px 10px;
            margin-bottom: 10px;
          }
          .pic{
            margin-bottom: 20px;
          }
          .html,.des{
            font-size: 14px;
            margin-bottom: 26px;
            ul{
              margin-left: 15px;
            }
          }
        }
      }
    }
    .dialog{
      .content{
        width: 80%;
        border-radius: 10px;
        padding: 20px;
        .close{
          right:10px;
          top:10px;
          svg{
            width: 15px;
          }
        }
        .form{
          .item{
            margin-bottom: 20px;
            p{
              font-size: 18px;
              margin-bottom: 8px;
            }
            input{
              height: 35px;
              font-size: 14px;
              padding: 8px 12px;
            }
          }
          .gz{
            margin-bottom: 20px;
            p{
              font-size: 18px;
              margin-bottom: 8px;
            }
            .tag{
              width: 114px;
              height: 32px;
              font-size: 16px;
              border-radius: 5px;
            }
          }
          .area{
            p{
              font-size: 18px;
              margin-bottom: 8px;
            }
            select{
              height: 35px;
              font-size: 14px;
              padding: 8px 12px;
            }
          }
          button{
            width: 128px;
            height: 35px;
            font-size: 16px;
            border-radius: 5px;
            margin-top: 15px;
          }
        }
      }
    }
  }
}